﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsApplication1.TellRequests;
using WindowsFormsApplication1.RebornLogin;
using WindowsFormsApplication1.EnterGameRequests;
using WindowsFormsApplication1.TransferCharacterRequests;
using WindowsFormsApplication1.FindFriends;
using WindowsFormsApplication1.WhoRequests;

namespace WindowsFormsApplication1
{
    static public class Managers
    {
        static public LoginManager loginManager = new LoginManager();
        static public SocketConnectionsManager socketConnectionsManager = new SocketConnectionsManager();
        static public WorldsManager worldsManager = new WorldsManager();
        static public EnterGameManager enterGameManager = new EnterGameManager();
        static public TransferCharacterManager transferCharacterManager = new TransferCharacterManager();
        static public TellManagerPS tellManager = new TellManagerPS();
        static public FindFriendsManager findFriendsManager = new FindFriendsManager();
        static public WhoRequestManager whoRequestManager = new WhoRequestManager();

        public static string escapeXmlText(string input)
        {
            input = input.Replace("&", "&amp;");
            while (input.IndexOf("<") > -1)
            {
                input = input.Replace("<", "&lt;");
            }
            while (input.IndexOf('"') > -1)
            {
                input = input.Replace("\"", "&quot;");
            }
            while (input.IndexOf("'") > -1)
            {
                input = input.Replace("'", "&apos;");
            }

            return input;
        }
    }
}
